
		
class Map:
	def __init__(self, shape, initial):
		self.shape = shape
		self.map = []
		for y in range(shape[1]):
			row = []
			for x in range(shape[0]):
				row.append(initial)
			self.map.append(row)
	
	def get_at(self, loc):
		return self.map[loc[1]][loc[0]]

	def set_at(self, loc, value):
		self.map[loc[1]][loc[0]] = value
		
	def get_map(self):
		pass

	def get_path(self, start, end):
		pass

	def __getitem__(self, mi):
		#mi = (y*self.mapw)+x
		#return self.map[loc[1]][loc[0]]
		print "getting: ", mi
		
	def __setitem__(self, mi, v):
		print "setting: ", mi, v
